<%-- 
    Document   : indices
    Created on : 15/09/2010, 06:36:42 PM
    Author     : Eduardo
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
            String[] campos = {
                "Criterio1",
                "Criterio2",
                "Criterio3",
                "Criterio4",
                "Criterio5"
            };
            pageContext.setAttribute("campos", campos);
%>
<div style="padding: 12px">
    <table>
        <tr>
            <td><font style="font-weight: bold">Tipo de Documento:</font> </td>
            <td>&nbsp;&nbsp; ${param.tipoDocumento}</td>
        </tr>
        <tr>
            <td>
                <font style="font-weight: bold">Descripci&oacute;n:</font>
            </td>
            <td>
                &nbsp;&nbsp; ${param.descripcion}
            </td>
        </tr>
    </table>
<br>
<form id="frmIndexar">
    <input type="hidden" name="usuario">
    <input type="hidden" name="id" >
    <input type="hidden" name="tipo" id="tipo"/>
    <table >
        <c:forEach var="campo" items="${campos}">
            <tr>
                <td>
                    ${campo}:
                </td>
                <td>
                    <input type="text" id="indice-${campo}"  name="indice-${campo}" style="width:600px;" onKeyPress="return validarNumLetras(event);" maxlength="300" >
                </td>
            </tr>
        </c:forEach>
    </table>
</form>
</div>